package com.pk.platform.util.filter;

import com.pk.platform.domain.privilege.User;


public class SystemContext {
    
    private static ThreadLocal<User> user = new ThreadLocal<User>();

    public static void setUser(User loginUser)
    {
        SystemContext.user.set(loginUser);
    }
    
    public static User getUser()
    {
        User loginUser = (User)SystemContext.user.get();
        return loginUser;
    }
    
    public static void removeUser()
    {
        SystemContext.user.remove();
    }

}
